const express = require('express');
const path = require('path');
const fs = require('fs');
const app = express();
const router =express.Router();
app.listen(3000, () => {
  console.log('服务器已开启')
});
//接参
app.use(express.urlencoded({extended: false}))
let data = JSON.parse(fs.readFileSync(path.join(__dirname, 'persons.json')))
const loginRouter = require('./login')
app.use(loginRouter)
const registerRouter = require('./register')
app.use(registerRouter)

